package com.otp.repository;

import com.otp.pojo.entity.CourseJoin;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;

public interface CourseJoinRepository extends JpaRepository<CourseJoin, Long> {
    List<CourseJoin> findByCourseId(Long courseId);
    CourseJoin findByCourseIdAndStudentId(Long courseId, Long studentId);
    List<CourseJoin> findByStudentId(Long studentId);
    List<CourseJoin> findByStatus(String status);
}